From ed00ef765e7b90be8e1455f55741f8aa970990e0 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 10 Dec 2010 10:49:20 +0000 Subject: [PATCH] credit2: Putting a vcpu to sleep also removes the delayed_runq_add flag Signed-off-by: George Dunlap --- xen/common/sched_credit2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c index d5196beb54..4a52a5b22c 100644 --- a/xen/common/sched_credit2.c +++ b/xen/common/sched_credit2.c @@ -668,6 +668,8 @@ csched_vcpu_sleep(const struct scheduler *ops, struct vcpu *vc) cpu_raise_softirq(vc->processor, SCHEDULE_SOFTIRQ); else if ( __vcpu_on_runq(svc) ) __runq_remove(svc); + else if ( test_bit(__CSFLAG_delayed_runq_add, &svc->flags) ) + clear_bit(__CSFLAG_delayed_runq_add, &svc->flags); } static void -- 2.30.2